package com.zb.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

import java.util.Map;

@FeignClient("goods")
public interface SkuFeignClient {

    @GetMapping("/tb-sku-model/info/{skuId}")
    public Map<String, Object> info(@PathVariable("skuId") String skuId);

    @PutMapping("/tb-sku-model/updateGoodsNum/{skuId}/{num}")
    public Integer updateGoodsNum(@PathVariable("skuId")String skuId,@PathVariable("num")Integer num);
}
